home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Custom GX Printer Drivers / About the printer drivers...
Encoding:
Text File  |  1995-05-03  |  1.8 KB  |  18 lines  |  [ttro/ttxt]

  1. About the CustomWriter GX and LaserWriterIIsc printer drivers…
  2.  
  3. CustomWriter GX is a QuickDraw GX printer driver that implements both custom communications code and custom buffering code. The LaserWriter IIsc printer driver demonstrates how to write a QuickDraw GX printer driver that supports SCSI, which is also a form of custom communications. This sample code is a companion to the Print Hints column in issue #21 of develop magazine, which covers custom I/O and custom buffering in depth.
  4.  
  5. The CustomWriter GX printer driver creates 32-bit deep, 72 dpi PICT files for each page of a document it "prints." These files can be viewed with SimpleText or a graphics program. Because the PICTs consists of 32-bit deep pixmaps, each file will be roughly 1.2 megabytes. You probably don't want to print any Tolstoy novels with this driver.
  6.  
  7. The main purpose of both drivers is, of course, to demonstrate how to write a printer driver which uses custom communications or buffering code. The CustomWriter GX printer driver also demonstrates how to support global data in a printer driver without using the standard methods supplied by QuickDraw GX. Most QuickDraw GX global data routines only work if called from within message overrides, but the approach used in the CustomWriter GX driver will work regardless of whether the calling code is in a message override or something like a callback routine.  (This is especially useful if you're implementing total overrides of the old API compatibility dialogs--not something that this printer driver does.)  Since I've received quite a few questions about how to implement this sort of global data, I've included an example of it in the CustomWriter GX driver. 
  8.  
  9. Enjoy.
  10.  
  11. Dave Hersey
  12. QuickDraw GX PrintShop
  13.  
  14. 5/3/95
  15. ver 1.0.1
  16.  
  17. Copyright ©1995, Apple Computer, Inc.
  18.